package com.javatop.controller.article;

import com.javatop.pojo.entity.Comment;
import com.javatop.pojo.entity.Result;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CommentController {
    //发送评论
    @PostMapping("/user/comment")
    public Result comment(@RequestBody Comment comment){
        return Result.success();
    }


    //删除评论
    @DeleteMapping("/user/comment")
    public Result comment_delete(@RequestBody Comment comment){
        return Result.success();
    }
}